package com.zhijiaoyun.service;

import com.zhijiaoyun.model.Authority;

import java.util.List;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public interface IAuthorityService {

    /**
     * get by name
     *
     * @param name
     * @return
     */
    Authority getAuthorityByName(String name);

    /**
     * add
     *
     * @param authority
     */
    void addAuthority(Authority authority);

    /**
     * get by id
     *
     * @param authorityId
     * @return
     */
    Authority getAuthorityByAuthorityId(Long authorityId);

    /**
     * get by name not id
     *
     * @param authorityId
     * @param name
     * @return
     */
    Authority getAuthorityByNameNotAuthorityId(Long authorityId, String name);

    /**
     * update
     *
     * @param authority
     */
    void modifyAuthority(Authority authority);

    /**
     * get by params
     *
     * @param name
     * @return
     */
    List<Authority> getByParams(String name);

}
